#ifndef LOGICMANAGERADAPTOR_H
#define LOGICMANAGERADAPTOR_H

#include <QObject>
#include "dataDefination.h"
#include "userinfomodel.h"
#include "logicmanager.h"
class LogicManagerAdaptor : public QObject
{
    Q_OBJECT
public:
    explicit LogicManagerAdaptor(QObject *parent = 0);

signals:
     void messageUpdated(const QString &ip,const QString &name,const QString &data);

     void sendMessage(const QString &ip,const QString &data);
     void login(const QString&);
     void stopChating(const QString&);
     void closeWindow();

public slots:
     void onMessageUpdated(const QString&, const QList<recordInfo>&);
     void onContactListUpdated(const QList<userInfo>&);

public:
     UserInfoModel *m_userInfoModel;
     LogicManager *m_logicManager;
     void setupAdaptor();
};

#endif // LOGICMANAGERADAPTOR_H
